package demo.day14;
// 懒汉式单例的实现 java版本 安全
public class _05JavaInstanceDay14 {
    private static _05JavaInstanceDay14 instance;
    private _05JavaInstanceDay14(){

    }
    public static synchronized  _05JavaInstanceDay14 getInstance(){
        if (instance == null){
            instance = new _05JavaInstanceDay14();
        }
        return instance;
    }
}
